package com.walter;

import lombok.extern.slf4j.Slf4j;

/**
 * @author ：ch
 * @date ：Created in 2019/5/21
 * @description：
 * @modified By：
 * @version: 1.0
 */
@Slf4j
public class LoginInfoHolder {

    private static final ThreadLocal<String> passwordHolder = new ThreadLocal<>();

    public static void setSalt(String salt) {
        log.info("当前用户的salt: {}", salt);
        passwordHolder.set(salt);
    }

    public static String getSalt() {
        return passwordHolder.get();
    }

}
